package com.interview.spring.proxy;

/**
 * @author: zsg
 * @description:
 * @date: 2019/12/1 21:00
 * @modified:
 */
public class ProxyUserDao implements UserDao {

    private UserDao userDao;

    public ProxyUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public String query(String params) {
        System.out.println("代理查询");
        return userDao.query(params);
    }
}
